﻿@model Admin.Models.ViewModel
@{
    ViewBag.Title = "Index";
    
}
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div class="widget">
                <div class="widget-content" style="display: block;">
                    @if (Model.FileCollection.Count > 0)
                    {
                        <table class="table table-striped table-hover table-responsive table-bordered">
                            <thead>
                                <tr>
                                    <th>
                                        <input data-type="toggle-switch-master" type="checkbox">
                                    </th>
                                    <th>Name
                                    </th>
                                    <th>Type
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                @for (int i = 0; i < Model.FileCollection.Count; i++)
                                {
                                    <tr>
                                        <td>
                                            <input data-type="toggle-switch" type="checkbox" data-filename="@Model.FileCollection[i].FullName">
                                        </td>
                                        <td>
                                            @Model.FileCollection[i].Name
                                        </td>
                                        <td>
                                            @Model.FileCollection[i].Extension
                                        </td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
